<template>
  <img :class="[item.config['tag'], item.typeId]" :src="getScr()" crossorigin="anonymous">
</template>

<script>
import mixin from '../mixin'

export default {
  name: 'DImage',
  mixins: [mixin],
  created() {
    // console.log(this.item)
  },
  methods: {
    getScr(){
      let _self = this
      let {imageUrl} = _self.item['configH5']
      return imageUrl || ''
    },
  },
}
</script>

<style scoped lang="scss">
.d-image{
  display: block;
  width: 100%;
  height: 100%;
  background: #fafafa;
  &.DShare{
    border-radius: 50%;
  }
}
</style>
